import request from "@/utils/request";

// 通用get接口
export function $http(url, params) {
  return request({
    url,
    method: "get",
    params: params || {}
  });
}
// 通用get接口
export function $post(url, data) {
  return request({
    url,
    method: "post",
    data: data || {}
  });
}